#pragma once

#include <QPainter>
#include <QWidget>

// 游戏区域
class GameBoard: public QWidget {
    Q_OBJECT

    private: QPixmap mBitmap;   // 后台缓冲位图
    private: QPainter mDrawer;  // 绘图者

    public: explicit GameBoard(QWidget*, int, int, int, int);
    public: QPixmap* getBitmap();
    private: void paintEvent(QPaintEvent*);
};
